class CreateCourseMaterials < ActiveRecord::Migration
  def self.up
    create_table :course_materials do |t|
      t.string :title, :null => false
      t.string :document_url, :null => false
      t.timestamp :time_posted, :null => false
      t.binary :document, :limit => 2.megabyte

      t.timestamps
    end
  end

  def self.down
    drop_table :course_materials
  end
end
